/**
 * @Function
 * @ProjectName credit-framework-service-project
 * @PackageName com.py.credit.filter
 * @FileName CSRFFilter.java
 * @Date 2020/10/23 16:53
 * @Author chen zl
 * @Copyright (c) 2020 金电联行 All Rights Reserved.
 */
package com.py.credit.filter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.filter.OncePerRequestFilter;

import java.io.IOException;
import java.util.Enumeration;

/**
 * @Function
 * @ClassName CSRFFilter
 * @Date 2020/11/18 10:53
 * @Author zzf
 *
 */
public class SessionFilter extends OncePerRequestFilter {  
	  
    @Override  
    protected void doFilterInternal(HttpServletRequest request,  
            HttpServletResponse response, FilterChain filterChain)  
            throws ServletException, IOException {  
            ParameterRequestWrapper requestWrapper = new ParameterRequestWrapper(request);  
            filterChain.doFilter(requestWrapper, response);  
    }  
}  